//
//  InfoUtil.swift
//  LivelyChat
//
//  Created by admin on 2021/6/23.
//

import UIKit
import HandyJSON

let rechargeNotice:NSNotification.Name = NSNotification.Name("rechargeNotice")

class InfoUtil: NSObject {
    
    struct basic:HandyJSON {
        var eula:String?
        var gui:Bool?
        var privacyPolicy:String?
        var technicalSupport:String?
    }
    
    struct initInfo:HandyJSON,Convertible {
        var birthday:String?
        var city:String?
        var id:String?
        var userId:String?
        var coins:String?
        var email:String?
        var gender:String?//0 男 1 女
        var headImage:String?
        var name:String?
        var photo:String?//背景图
        var tags:String?
        var userDesc:String?
        var vipExpTime:String?
        var vipLevel:String?
        var xz:String? // 新用户
        var zy:String?
        var token:String?
        var nickName:String?
        var info0:String?//
        var info1:String?//签名
        var info9:String?//app标识
    }

    struct careState:HandyJSON {
        var state:String?
    }

    struct register:HandyJSON {
        var userId:String?
    }
    
    struct uplpadImg:HandyJSON {
        var imageUrl:String?
        var url:String?
    }

    struct videoTicket:HandyJSON {
        var uploadAddress:String?
        var uploadAuth:String?
        var videoId:String?
    }

    struct videoInfoList:HandyJSON {
        var playInfoList:[videoplayInfo]?
    }
    struct videoplayInfo:HandyJSON {
        var bitrate:String?
        var creationTime:String?
        var definition:String?
        var duration:String?
        var format:String?
        var height:String?
        var playURL:String?
        var width:String?
    }
    struct roomList:HandyJSON {
        var lists:[room]!
    }
    
    //             dict["info0"] = self.titlefiled.text
//    dict["info1"] = self.imgUrl
//    dict["info2"] = self.btn.currentTitle ?? "All"
//    dict["info3"] = strNowTime
//    dict["desc"] = htmlString

    struct room:HandyJSON {
        var anchors:String?
        var userId:String?
        var createUserId:String?
        var createUserName:String?
        var hot:String?
        var data1:String?
        var descInfo:String?
        /// 收费
        var data2:String?
        /// 会员列表
        var data3:String?
        var houseName:String?
        var houseType:String?
        var houseUsers:String?
        //
        var info:String?
        
        ///
        var info0:String?
        ///
        var info1:String?
        ///
        var info2:String?
        ///
        var info3:String?
        ///
        var desc:String?
        ///
        var info4:String?

        var info5:String?//语言
        

        var info6:String?

        var info7:String?//语音 permossion


        var info8:String?

        var info9:String? //性别

        var password:String?
        var price:String?
        var icon:String?
        var id:String?
    }
    
    struct chatDta:HandyJSON {
        var userId:String?
        var content:String?
        var lastTime:String?
    }

    struct commentDta:HandyJSON {
        var userImage:String?
        var userName:String?
        var msg:String?
        var createTime:String?
        var id:String?
        var userId:String?
    }
    
    struct convesationData:HandyJSON {
        var headImg:String?
        var name:String?
        var content:String?
        var time:String?
        var id:String?
        ///  0图片 1文字
        var type:String?
    }

    struct anchorList:HandyJSON {
        var users:[anchorPageList]!
    }
    
    struct anchorPageList:HandyJSON {
        var country:String?
        var distance:String?
        var id:String?
        var isBinding:String?
        var isMoney:String?
        var label:String?
        var locale:String?
        var name:String?
        var pic:String?
        var online:String?
        var headImage:String?
        var userDesc:String?
        var tags:String?
        var xz:String?
        var zy:String?
        var birthday:String?
        var info9:String?
    }
    
    struct anchorInfo:HandyJSON {
        var age:String?
        var city:String?
        var cost:String?
        var desc:String?
        var gender:String?
        var headImage:String?
        var id:String?
        var language:String?
        var nickname:String?
        var online:String?
        var pic:String?
    }

    struct userInfo:HandyJSON {
        var birthday:String?
        var city:String?
        var email:String?
        var headImage:String?
        var name:String?
        var photo:String?
        var tags:String?
        var userDesc:String?
        var vipExpTime:String?
        var vipLevel:String?
        var xz:String?
        var zy:String?
    }

    
}
